import { createApp } from 'vue'
import App from './App.vue'

// import '@/mock' //mock数据
import router from './router/index.js';
import './router/permission'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import SvgIcon from './components/SvgIcon/SvgIcon.vue';
import pinia from './store/index.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
app.use(pinia)

app.use(ElementPlus, {locale: zhCn})
app.use(router);

app.component("svg-icon", SvgIcon)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
